package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据库信息对象 db_info
 * 
 * @author ruoyi
 * @date 2025-09-02
 */
public class DbInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据库信息序号 */
    private Long dbId;

    /** 部门ID */
    @Excel(name = "部门编号", type = Excel.Type.IMPORT)
    private Long deptId;

    public Long getDeptId()
    {
        return deptId;
    }

    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    /** 用户ID */
    @Excel(name = "用户编号", type = Excel.Type.IMPORT)
    private Long userId;

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    /** 数据库IP地址 */
    @Excel(name = "数据库IP地址")
    private String ipAddr;

    /** 数据库端口 */
    @Excel(name = "数据库端口")
    private Integer port;

    /** 数据库名称 */
    @Excel(name = "数据库名称")
    private String naDb;

    /** 数据库用户名 */
    @Excel(name = "数据库用户名")
    private String username;

    /** 数据库密码 */
    @Excel(name = "数据库密码")
    private String password;

    public void setDbId(Long dbId) 
    {
        this.dbId = dbId;
    }

    public Long getDbId() 
    {
        return dbId;
    }

    public void setIpAddr(String ipAddr) 
    {
        this.ipAddr = ipAddr;
    }

    public String getIpAddr() 
    {
        return ipAddr;
    }

    public void setPort(Integer port) 
    {
        this.port = port;
    }

    public Integer getPort() 
    {
        return port;
    }

    public void setNaDb(String naDb) 
    {
        this.naDb = naDb;
    }

    public String getNaDb() 
    {
        return naDb;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dbId", getDbId())
            .append("ipAddr", getIpAddr())
            .append("port", getPort())
            .append("naDb", getNaDb())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
